package com.server.dao;

import java.util.Date;
import java.util.Vector;

import com.data.Interview;
import com.server.mock.MockDBQueries;

public class JDBCInterviewDAO implements InterviewDAO {
	MockDBQueries mockDB = new MockDBQueries();

	public boolean saveInterview(Interview intv) {
		return mockDB.storeToDB();
	}

	public Vector<Interview> getAllInterviews(String user) {
		return mockDB.getInterviewCollectionFromDB();
	}

	public Vector<Interview> getNotDownloadedInterviews(String user) {
		return mockDB.getInterviewCollectionFromDB();
	}

	public boolean updateUpdateTime(Date newTime, String userId, String jobId) {
		return mockDB.storeToDB();
	}

	public Interview getInterview(String userId, String jobId) {
		return mockDB.getInterviewFromDB(jobId);
	}

}